home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Apple WWDC 1996
/
WWDC96_1996 (CD).toast
/
Technology Materials
/
MacOS 8 Resources
/
Developer Tools
/
Mac OS 8 Interfaces & Libraries
/
Interfaces
/
IDLIncludes
/
HITables.idl
< prev
next >
Wrap
Text File
|
1996-05-01
|
4KB
|
124 lines
/*
File: HITables.idl
Contains: Interfaces to two-dimensional list class
Version: Technology: System 8.0
Release: Universal Interfaces 3.0d3 on Copland DR1
Copyright: © 1995-1996 by Apple Computer, Inc. All rights reserved.
Bugs?: If you find a problem with this file, send the file and version
information (from above) and the problem description to:
Internet: apple.bugs@applelink.apple.com
AppleLink: APPLE.BUGS
*/
#ifndef __HITABLES_IDL__
#define __HITABLES_IDL__
#include <HIPanels.idl>
#include <HILists.idl>
#include <HIImagingObjects.idl>
#include <HITableTypes.idl>
interface HITable : HIPanel
{
// ======================================================
// Public Methods
// ======================================================
OSStatus InitTable( in RefLabel identifier,
in HIWindow window,
in Rect bounds,
in HIItemStorage itemStorage );
OSStatus AddRows( in HIItemIndex rowIndex, in UInt32 numItems );
// Adds empty rows to table
OSStatus AddColumns( in HIItemIndex columnIndex, in UInt32 numItems );
// Adds empty columns to table
OSStatus DeleteRow( in HIItemIndex rowIndex );
// Deletes the specified row from a table; Also deletes the item data if any
OSStatus DeleteColumn( in HIItemIndex columnIndex );
// Deletes the specified column from a table; Also deletes the item data if any
OSStatus GetExtent( out HIItemIndex rowIndex, out HIItemIndex columnIndex );
// Returns the number of rows and columns in a table
OSStatus SetItemImage( in HIItemIndex rowIndex, in HIItemIndex columnIndex,
in ConstHIImageRef imageRef, in HIAdoptionFlags imageAdoptionFlags );
OSStatus GetItemImage( in HIItemIndex rowIndex, in HIItemIndex columnIndex,
out HIImageRef imageRefPtr );
OSStatus SetItemEnabledState( in HIItemIndex rowIndex, in HIItemIndex columnIndex, in HIItemState enableState );
HIItemState GetItemEnabledState( in HIItemIndex rowIndex, in HIItemIndex columnIndex );
OSStatus SetItemSelectedState( in HIItemIndex rowIndex, in HIItemIndex columnIndex, in HIItemState selectedState );
HIItemState GetItemSelectedState( in HIItemIndex rowIndex, in HIItemIndex columnIndex );
OSStatus GetSelectedItems( in UInt32 requestedCount, out UInt32 actualCount,
inout HICellCoordinate cellArray );
OSStatus AddItemCollectionItem( in HIItemIndex rowIndex, in HIItemIndex columnIndex, in CollectionTag tag,
in UInt32 inDataSize, out UInt32 outDataSize, in void *data );
// For developer use exclusively. table panels completely ignore the contents of collection items;
// These methods are just pass-throughs to the Collection Manager.
OSStatus GetItemCollectionItemData( in HIItemIndex rowIndex, in HIItemIndex columnIndex, in CollectionTag tag,
in ByteCount dataSizeAllowed, out ByteCount dataSizeReturned, in void *data );
OSStatus RemoveItemCollectionItem( in HIItemIndex rowIndex, in HIItemIndex columnIndex, in CollectionTag tag );
implementation
{
passthru C_h = "#include <HILists.h>"
"#include <HITableTypes.h>";
passthru C_xh = "#include <HILists.xh>"
"#include <HITableTypes.h>";
releaseorder: InitTable,
AddRows,
AddColumns,
DeleteRow,
DeleteColumn,
GetExtent,
SetItemImage,
GetItemImage,
SetItemEnabledState,
GetItemEnabledState,
SetItemSelectedState,
GetItemSelectedState,
GetSelectedItems,
AddItemCollectionItem,
GetItemCollectionItemData,
RemoveItemCollectionItem,
HitTest,
GetItemRect,
NewItemStorage,
DisposeItemStorage;
};
};
#endif